package object.obj2D.weapon;


import object.obj2D.Object2D;
import object.obj2D.graphics.AnimSystem;
import object.obj2D.graphics.Square;
import system.Device;


public abstract class Gun extends Object2D {
	private int 	ratio = 6;
	protected Square		m_background;
	protected AnimSystem	m_animFire;
	protected AnimSystem	m_animStop;
	protected String		m_animName;
	protected float	m_bgHeight = Device.GetHeight()/ratio;
	protected float	m_bgWidght = Device.GetWidth()/ratio;
	protected final static int	ANIM_MACHINE_FIRE = 0;
	protected final static int	ANIM_MACHINE_STOP = ANIM_MACHINE_FIRE + 1;
	protected final static int	ANIM_FIREGUN = ANIM_MACHINE_STOP + 1;
	protected final static int	ANIM_ROCKET_FIRE = ANIM_FIREGUN + 1;
	protected final static int	ANIM_ROCKET_STOP = ANIM_ROCKET_FIRE + 1;
	public final static int	AC_FIRE = 0;
	public final static int	AC_STOP = AC_FIRE + 1;
	
	public final static int MACHINE_GUN = 0;
	public final static int FIRE_GUN = MACHINE_GUN + 1;
	
	public abstract void Render(int action);
	public float getWidth(){
		return m_bgWidght;
	}
	public float getHeight(){
		return m_bgHeight;
	}
}
